﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SessionExpired.ascx.cs" Inherits="Tfg.Hrs.UI.Controls.SessionExpired" %>

<script type="text/javascript" language="javascript">
    function clientReceiveServerData(returnValue) {
    }
</script>

<div id="timeout_modal_overlay"></div>

<div id="timeout_box">
    <div class="title-bar">
        Session Expiring
    </div>
    <table id="SessionExpiredTable" style="display: none;">
    <tr>
        <td>
            <span style="color: Black;">Your session will be expired after <span id="expiredTime"></span> seconds, would you like to extend the session time? </span>
        </td>
    </tr>
    <tr>
        <td>
            <br />
            <input type="button" id="btnTimeextend" value="Yes" class="button" onclick="extendSession();" />
            <input type="button" id="btnTimeExpired" value="No" class="button" onclick="ShowExpired();" />
        </td>
    </tr>
    </table>
</div>

<asp:HiddenField ID="TimeOutHiddenField" runat="server" />

<span style="clear: both;"></span>

<script type="text/javascript" language="javascript">
    function ShowExpired() {
        window.location = '<%= ResolveUrl("~/Errors/Timeout.aspx") %>';
    }
</script>

<script type="text/javascript" language="javascript">
    $(document).ready(function () {
        schedulePopup();
    });
</script>
